/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

//import anet.channel.strategy.dispatch.DispatchConstants;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class ProductEntity {
    @Nullable
    private final String giftChatTime;
    @NotNull
    private final String nowPrice;
    @NotNull
    private final String originPrice;
    private final boolean periodPayment;
    @Nullable
    private final String periodRemark;
    @NotNull
    private final String priceRemark;
    private final int productAddsCount;
    @NotNull
    private final String productAddsUnit;
    private final int productId;
    @NotNull
    private final String productName;
    @NotNull
    private final String productType;
    @Nullable
    private final String recomUrl;
    @NotNull
    private final String supportPayMethod;
    @NotNull
    private final String zheHePrice;

    public ProductEntity(@NotNull String nowPrice, @NotNull String originPrice, boolean z, int i2, @NotNull String productAddsUnit, int i3, @NotNull String productName, @NotNull String productType, @NotNull String supportPayMethod, @NotNull String zheHePrice, @Nullable String str, @NotNull String priceRemark, @Nullable String str2, @Nullable String str3) {
        Intrinsics.checkNotNullParameter(nowPrice, "nowPrice");
        Intrinsics.checkNotNullParameter(originPrice, "originPrice");
        Intrinsics.checkNotNullParameter(productAddsUnit, "productAddsUnit");
        Intrinsics.checkNotNullParameter(productName, "productName");
        Intrinsics.checkNotNullParameter(productType, "productType");
        Intrinsics.checkNotNullParameter(supportPayMethod, "supportPayMethod");
        Intrinsics.checkNotNullParameter(zheHePrice, "zheHePrice");
        Intrinsics.checkNotNullParameter(priceRemark, "priceRemark");
        this.nowPrice = nowPrice;
        this.originPrice = originPrice;
        this.periodPayment = z;
        this.productAddsCount = i2;
        this.productAddsUnit = productAddsUnit;
        this.productId = i3;
        this.productName = productName;
        this.productType = productType;
        this.supportPayMethod = supportPayMethod;
        this.zheHePrice = zheHePrice;
        this.recomUrl = str;
        this.priceRemark = priceRemark;
        this.periodRemark = str2;
        this.giftChatTime = str3;
    }

    @NotNull
    public final String component1() {
        return this.nowPrice;
    }

    @NotNull
    public final String component10() {
        return this.zheHePrice;
    }

    @Nullable
    public final String component11() {
        return this.recomUrl;
    }

    @NotNull
    public final String component12() {
        return this.priceRemark;
    }

    @Nullable
    public final String component13() {
        return this.periodRemark;
    }

    @Nullable
    public final String component14() {
        return this.giftChatTime;
    }

    @NotNull
    public final String component2() {
        return this.originPrice;
    }

    public final boolean component3() {
        return this.periodPayment;
    }

    public final int component4() {
        return this.productAddsCount;
    }

    @NotNull
    public final String component5() {
        return this.productAddsUnit;
    }

    public final int component6() {
        return this.productId;
    }

    @NotNull
    public final String component7() {
        return this.productName;
    }

    @NotNull
    public final String component8() {
        return this.productType;
    }

    @NotNull
    public final String component9() {
        return this.supportPayMethod;
    }

    @NotNull
    public final ProductEntity copy(@NotNull String nowPrice, @NotNull String originPrice, boolean z, int i2, @NotNull String productAddsUnit, int i3, @NotNull String productName, @NotNull String productType, @NotNull String supportPayMethod, @NotNull String zheHePrice, @Nullable String str, @NotNull String priceRemark, @Nullable String str2, @Nullable String str3) {
        Intrinsics.checkNotNullParameter(nowPrice, "nowPrice");
        Intrinsics.checkNotNullParameter(originPrice, "originPrice");
        Intrinsics.checkNotNullParameter(productAddsUnit, "productAddsUnit");
        Intrinsics.checkNotNullParameter(productName, "productName");
        Intrinsics.checkNotNullParameter(productType, "productType");
        Intrinsics.checkNotNullParameter(supportPayMethod, "supportPayMethod");
        Intrinsics.checkNotNullParameter(zheHePrice, "zheHePrice");
        Intrinsics.checkNotNullParameter(priceRemark, "priceRemark");
        return new ProductEntity(nowPrice, originPrice, z, i2, productAddsUnit, i3, productName, productType, supportPayMethod, zheHePrice, str, priceRemark, str2, str3);
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof ProductEntity)) {
            return false;
        }
        ProductEntity productEntity = (ProductEntity) obj;
        return Intrinsics.areEqual(this.nowPrice, productEntity.nowPrice) && Intrinsics.areEqual(this.originPrice, productEntity.originPrice) && this.periodPayment == productEntity.periodPayment && this.productAddsCount == productEntity.productAddsCount && Intrinsics.areEqual(this.productAddsUnit, productEntity.productAddsUnit) && this.productId == productEntity.productId && Intrinsics.areEqual(this.productName, productEntity.productName) && Intrinsics.areEqual(this.productType, productEntity.productType) && Intrinsics.areEqual(this.supportPayMethod, productEntity.supportPayMethod) && Intrinsics.areEqual(this.zheHePrice, productEntity.zheHePrice) && Intrinsics.areEqual(this.recomUrl, productEntity.recomUrl) && Intrinsics.areEqual(this.priceRemark, productEntity.priceRemark) && Intrinsics.areEqual(this.periodRemark, productEntity.periodRemark) && Intrinsics.areEqual(this.giftChatTime, productEntity.giftChatTime);
    }

    @Nullable
    public final String getGiftChatTime() {
        return this.giftChatTime;
    }

    @NotNull
    public final String getNowPrice() {
        return this.nowPrice;
    }

    @NotNull
    public final String getOriginPrice() {
        return this.originPrice;
    }

    public final boolean getPeriodPayment() {
        return this.periodPayment;
    }

    @Nullable
    public final String getPeriodRemark() {
        return this.periodRemark;
    }

    @NotNull
    public final String getPriceRemark() {
        return this.priceRemark;
    }

    public final int getProductAddsCount() {
        return this.productAddsCount;
    }

    @NotNull
    public final String getProductAddsUnit() {
        return this.productAddsUnit;
    }

    public final int getProductId() {
        return this.productId;
    }

    @NotNull
    public final String getProductName() {
        return this.productName;
    }

    @NotNull
    public final String getProductType() {
        return this.productType;
    }

    @Nullable
    public final String getRecomUrl() {
        return this.recomUrl;
    }

    @NotNull
    public final String getSupportPayMethod() {
        return this.supportPayMethod;
    }

    @NotNull
    public final String getZheHePrice() {
        return this.zheHePrice;
    }

    public int hashCode() {
        int hashCode = ((this.nowPrice.hashCode() * 31) + this.originPrice.hashCode()) * 31;
        boolean z = this.periodPayment;
        if (z) {
            z = true;
        }
        int i2 = z ? 1 : 0;
        int i3 = z ? 1 : 0;
        int i4 = z ? 1 : 0;
        int hashCode2 = (((((((((((((((hashCode + i2) * 31) + this.productAddsCount) * 31) + this.productAddsUnit.hashCode()) * 31) + this.productId) * 31) + this.productName.hashCode()) * 31) + this.productType.hashCode()) * 31) + this.supportPayMethod.hashCode()) * 31) + this.zheHePrice.hashCode()) * 31;
        String str = this.recomUrl;
        int i5 = 0;
        int hashCode3 = (((hashCode2 + (str == null ? 0 : str.hashCode())) * 31) + this.priceRemark.hashCode()) * 31;
        String str2 = this.periodRemark;
        int hashCode4 = (hashCode3 + (str2 == null ? 0 : str2.hashCode())) * 31;
        String str3 = this.giftChatTime;
        if (str3 != null) {
            i5 = str3.hashCode();
        }
        return hashCode4 + i5;
    }

    @NotNull
    public String toString() {
        return "ProductEntity(nowPrice=" + this.nowPrice + ", originPrice=" + this.originPrice + ", periodPayment=" + this.periodPayment + ", productAddsCount=" + this.productAddsCount + ", productAddsUnit=" + this.productAddsUnit + ", productId=" + this.productId + ", productName=" + this.productName + ", productType=" + this.productType + ", supportPayMethod=" + this.supportPayMethod + ", zheHePrice=" + this.zheHePrice + ", recomUrl=" + this.recomUrl + ", priceRemark=" + this.priceRemark + ", periodRemark=" + this.periodRemark + ", giftChatTime=" + this.giftChatTime + ')';
    }
}